package com.sanchunhui.psc.service

import com.sanchunhui.psc.data.api.UserApi
import com.sanchunhui.psc.data.net.RetrofitFactory
import com.sanchunhui.psc.data.protocol.BaseResp
import com.sanchunhui.psc.data.protocol.ResponseInfo
import com.sanchunhui.psc.data.protocol.TokenReq
import rx.Observable

/*
    用户模块 业务接口
 */
interface UserService {

    //用户注册
    fun register(mobile:String,pwd:String,verifyCode:String):Observable<Boolean>

    //用户登录
    fun login(mobile:String,pwd:String):Observable<ResponseInfo>

    // 注销登录
    fun logout(token: String):Observable<Boolean>

    //忘记密码
    fun forgetPwd(mobile:String,verifyCode:String):Observable<Boolean>

    //重置密码
    fun resetPwd(token:String,old_password:String,new_password:String):Observable<ResponseInfo>

    //编辑用户资料
    fun editUser(userIcon:String,userName:String,userGender:String):Observable<ResponseInfo>
}
